package cn.rongdao.jrkabao.model.message;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.message.SystemMessageBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/8/21
 */

public class SystemMessageModel extends BaseKaMaoModel {

    public static SystemMessageModel getInstance() {
        return getPresent(SystemMessageModel.class);
    }

    public void execute(Observer<List<SystemMessageBean>> observer) {
        Observable<List<SystemMessageBean>> observable = mServletApi.getSystemMessage(mParams).map(new HttpFunction<List<SystemMessageBean>>());
        toSubscribe(observable, observer);
    }
}